<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Document</title>
</head>
<body>    
    <h2>
        <s:if test="null == document.id">
            Add Document
        </s:if>
        <s:else>
            Edit Document
        </s:else>
    </h2>
    <s:form action="save" >
        <s:textfield name="document.filename" label="File Name" />
        <s:select name="document.detailUserByUserId.id" list="users" listKey="user.id" listValue="user.username"></s:select>
        <s:textfield name="document.detailUserByPatient.id" label="Patient" />
        <s:select name="document.detailUserByOpeatorId.id" list="operators" listKey="user.id" listValue="user.username"></s:select>
        <s:textfield name="document.hospital.id" label="Hospital"/>
        <s:textfield name="document.introduction" label="Introduction" />
        <s:hidden name="document.id"/>
        <s:submit />
    </s:form>
</body>
</html>